﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApp.Models
{
    public class OperationDto
    {
        public long Id { get; set; }
        public int AppId { get; set; }
        public string AppToken { get; set; }
        public string CollectorCode { get; internal set; }
        public string MeterCode { get; internal set; }
        public string Password { get; internal set; }
        public string RequestId { get; internal set; }
        public string Command { get; internal set; }
        /// <summary>
        /// 可以查询的命令Id
        /// </summary>
        public string QueryId { get; set; }
        /// <summary>
        /// 电量刻度
        /// </summary>
        public decimal ActivePower { get; set; }
        public string CallbackUrl { get; internal set; }
        public IoTCmdStatus Status { get; internal set; }
        public int TryCount { get; internal set; }
        public DateTime CreateTime { get; internal set; }
        public DateTime ExcuteTime { get; internal set; }
        public string Message { get; internal set; }
        public IEnumerable<SubscribeDto> Subscribes { get; set; }
    }
}
